#include "matrix.h"

Matrix::Matrix()
{

}

Matrix::Matrix(int m, int n, int nums[][MAX_LEN])
{
    this->m = m;
    this->n = n;
    for(int i = 0; i < m; i++){
        for(int j = 0; j < n; j++){
            matrix[i][j] = nums[i][j];
        }
    }
}

QString Matrix::toString()
{
    QString res;
    for(int i = 0; i < m; i++){
        for(int j = 0; j < n; j++){
            res += QString::number(matrix[i][j]) + " ";
        }
        res.append("<br>");
    }
    return res;
}



